package book.zone.controller;

import book.zone.auth.User;
import book.zone.log.Logger;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: ndemeshchenko
 * Date: May 12, 2010
 * Time: 4:22:17 PM
 */
public class SignupServlet extends HttpServlet{

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        Logger.out("doGet in SignupServlet, WHY?");
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String firstName = req.getParameter("firstName");
        String lastName = req.getParameter("lastName");
        String email = req.getParameter("email");
        String city = req.getParameter("city");
        String passwd = req.getParameter("passwd");
        User user = new User(firstName, lastName, email, city, passwd);
//        Logger.out(model.doInsert());
        
    }
}
